package com.llb666.e.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
//import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) // 自动装配，排除安全框架的登录验证.
@MapperScan(basePackages = "com.llb666.e.shop.infrastructure.mapper") // 一定要用 tk.mybatis的注解.
@ComponentScan(basePackages = {"com.llb666.e.shop","org.n3r.idworker"})
//@EnableScheduling //开启定时任务
//@EnableRedisHttpSession //开启使用 redis 作为Spring Session
public class ShopApplication {

    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors","false");
        SpringApplication.run(ShopApplication.class, args);
        System.out.println
                (       "       ｡ﾟﾟ･｡･ﾟﾟ｡\n" +
                        "       ﾟ。    ｡ﾟ\n" +
                        "         ﾟ･｡･ﾟ\n" +
                        "       ︵        ︵\n" +
                        "     (    ╲   /   /\n" +
                        "      ╲     ╲/   /\n" +
                        "        ╲     ╲ /\n" +
                        "      ╭ ͡ ╲      ╲\n" +
                        "    ╭ ͡╲    ╲     ﾉ\n" +
                        "  ╭ ͡╲   ╲      ╱\n" +
                        "   ╲   ╲      ╱\n" +
                        "     ╲      ╱\n" +
                        "       ︶ "+"启动成功ლ(´ڡ`ლ)");
    }

}
